package cn.echoidea.app;

import org.nutz.dao.Dao;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.NutIoc;
import org.nutz.ioc.loader.json.JsonLoader;

public class Root {

	public static Ioc ioc;
	public static Dao dao;
	static {
		ioc = new NutIoc(new JsonLoader("datasource.js"));
		// DataSource ds = ioc.get(DataSource.class);
		// Dao dao = new NutDao(ds); // 如果已经定义了dao,那么改成
		dao = ioc.get(Dao.class);

	}
}
